import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import api from './api/api'
import VueAxios from 'vue-axios'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import echarts from 'echarts' //引入echarts
import VueQuillEditor from 'vue-quill-editor'
//引入css样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)

Vue.prototype.$echarts = echarts //挂载在原型，组件内使用直接this.$echarts调用


// axios.defaults.baseURL = '/api'
axios.defaults.headers.post['Content-Type'] = 'application/json'
Vue.use(VueAxios, axios)
Vue.config.productionTip = false
Vue.use(ElementUI, { size: 'small', zIndex: 3000 });
// Vue.prototype.$axios = axios
Vue.prototype.$api = api

new Vue({
  axios,
  router,
  store,
  render: h => h(App)
}).$mount('#app')
